<template>
	<div class="cons">
		<ul>
			<li class="cons-li" v-for="item in list" :key="item.id">
				<div class="cons-imgs">
					<img :src="require('@/'+item.imgUrl)" >
				</div>
				<label>{{item.title}}</label>
			</li>
		</ul>
	</div>
</template>

<script>
	export default {
		name:'Cons',
		props:['cons_list'],
		data() {
			return {
				list:this.cons_list
			}
		},
		watch:{
			cons_list(){
				this.list=this.cons_list
			}
		}
	}
</script>

<style scoped>
	.cons{
		width: 100%;
		margin: 1rem auto 0.5rem;
		overflow: hidden;
		background-color: white;
	}
	.cons-li{
		float: left;
		width: 20%;
		overflow: hidden;
		text-align: center;
	}
	.cons-imgs{
		width: 1.2rem;
		overflow: hidden;
		margin: 0 auto 0.15rem;
	}
	.cons-imgs img{
		width: 100%;
		height: 100%;
	}
</style>
